#ifndef __SANGAME_HISTORY_INDICATOR_OVERLAY_H__
#define __SANGAME_HISTORY_INDICATOR_OVERLAY_H__

#include "HistoryIndicatorBase.h"
#include "HistoryData.h"
#include "indicator/technique.h"

class CHistoryIndicatorOverlay : public CHistoryIndicatorBase {
public:
	CHistoryIndicatorOverlay(SGHandle owner_handle);

	BOOL OnSGInitContext(SGContext* context_param);
	BOOL OnSGGoodsChange(SGGoodsChange* goods_change_param);
	BOOL OnSGDrawBack(SGCanvas* canvas_param);
	BOOL OnSGDrawFore(SGCanvas* canvas_param);

private:
	typedef sangame::jjh::core::indicator::CResultSet CResultSet;

	void CalcIndicator();

	std::shared_ptr<CHistoryData> m_pData;
	CResultSet m_tResultSet;
	std::string m_strIndicatorName;
	std::string m_strIndicatorParam;

};

#endif // __SANGAME_HISTORY_INDICATOR_OVERLAY_H__